// 隐患统计(村级台账)
import type { AppRouteModule } from '/@/router/types';

import { getParentLayout, LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';
// countVillageLedger
const house: AppRouteModule = {
  path: '/danger',
  name: 'DangerCountVillageLedger',
  component: LAYOUT,
  redirect: '/danger/countVillageLedger',
  meta: {
    orderNo: 401,
    icon: 'ion:layers-outline',
    title: t('routes.demo.countVillageLedger.root'),
    roles: ['Admin', 'City'], // , 'Area', 'Street', 'Community'
    // userGroups: ['Admin', 'FireControl', 'Housing', 'Police'],
    userGroups: ['Admin'],
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'countVillageLedger',
      name: 'countVillageLedger',
      meta: {
        title: t('routes.demo.countVillageLedger.root'),
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['Admin'],
      },
      component: () => import('/@/views/village/housesDangerLiving/countVillageLedger.vue'),
    },
  ],
};

export default house;
